package twt.practice.votingsystem.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import twt.practice.votingsystem.pojo.Consequence;

import java.util.List;

@Repository
@Mapper
public interface ManageMapper {
    int addVote(String title_context);
    int addChoice(Integer title_id, String choice_context);
    int deleteVote(String title_context);
    int deleteChoice(String title_context, String choice_context);
    List<Consequence> getConsequence();
}
